package com.ls.system.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.ls.system.entity.SysPermission;
import lombok.Data;

/**
 * @Author lisheng
 * @Date 2025/04/20 10:04
 **/
@Data
public class SysPermissionVO extends SysPermission {

    @TableField("title")
    private String menuName;

    public String getTypeName() {
        switch (super.getType()) {
            case "menu":
                return "菜单权限";
            case "button":
                return "操作权限";
            case "api":
                return "API权限";
            default:
                return "未知类型";
        }


    }
}
